﻿using MDPM.EntitiyModels.HospitalDepartment;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;

namespace MDPM.ORM
{
    /// <summary>
    /// 关系数据库映射上下文关系，由于用到了IdentityUser服务，但是此时我针对的东西是数据库，所以这个抛弃了
    /// </summary>
    public class MdDbContext:IdentityDbContext<IdentityUser<Guid>,IdentityRole<Guid>,Guid>
    {
        public MdDbContext(DbContextOptions<MdDbContext> options) : base(options)
        {

        }
        #region 医院部门管理相关
        public DbSet<Department> Departments { get; set; }
        public DbSet<Section> Sections { get; set; }

        #endregion
    }
}
